<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<input type="text" id="i1">
<input type="button" value="添加冰冰1号" onclick="f1(1)">
<input type="button" value="添加冰冰2号" onclick="f1(2)">

<script>
  let i = document.querySelector("#i1");
  function f1(x){
    let k = x==1?"../0076LQCyly1gxds1chyrej32ha1ni1kx.jpg" : "../0076LQCyly1h1kmn3mjw0j335s1s07wh.jpg";
    for (let j = 0; j < i.value; j++) {
      let  m = document.createElement("img");
      m.src = k;
      document.body.append(m);
    }
  }

</script>
</body>
</html>